<?php

class Sendfriend extends AppModel {
    var $useTable = false;
    var $_schema = array(
        'YourEmail'	=>array('type'=>'string', 'length'=>255),
        'YourName'      =>array('type'=>'string', 'length'=>255),
        'FriendEmail'	=>array('type'=>'string', 'length'=>255),
        'Comments'	=>array('type'=>'text')
    );
    var $validate = array(
        'YourName' => array(
            'rule'=>array('minLength', 1), 
            'message'=>'Name is required' ),
        'YourEmail' => array(
            'rule'=>'email', 
            'message'=>'Must be a valid email address' ),
        'FriendEmail' => array(
            'rule'=>'email', 
            'message'=>'Must be a valid email address' ),
        'content' => array(
            'rule'=>array('minLength', 1), 
            'message'=>'Feedback is required' )
    );
}